﻿using System;
using System.Linq;
using SupermarketModel;
using Supermarket.Data;
using System.Data;
using System.Data.Entity;
using Supermarket.Data.Migrations;

namespace Supermarket.Client
{
    class Program
    {
        static void Main()
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<SupermarketContext, Configuration>());
            
            DataImporter.ImportProducts();
            DataImporter.ImportVendorExpenses();
            DataImporter.ImportSales();
            
            DataExporter.ExportToJson();
            DataExporter.ExportToPdf();
            DataExporter.ExportToXMLReport();
            DataExporter.ExportToSqLite();
            DataExporter.ExportToExcel();
        }
    }
}
